// 登录接口
import request from "../utils/request";
import {LoginParams} from "@/interface/login"
import {MenuParams} from "@/interface/menu"
export function login(data:LoginParams):any  {
  return request({
    type:'get',
    url:"/user/login",
    data
  })
}
// 消息提醒接口
export function noticeCount():any  {
  return request({
    type:'get',
    url:"/leave/count",
    data:null,
    mock:true
  })
}
// 菜单接口
export function menuList(params?:MenuParams):any  {
  return request({
    type:'get',
    url:"/menu/list",
    data:params
  })
}

// 权限菜单
export function menuPermissionList():any  {
  return request({
    type:'get',
    url:"/user/getPermissionList",
    data:{}
  })
}